package com.derbtec.refale.models;

import java.util.ArrayList;
import java.util.Date;

public class Event {
	
	private int id;
	private String name;
	private String place;
	private String description;
	private Date startDate;
	private Date endDate;
	private User creator;
	private Date creationDate;
	private ArrayList<Resource> resourceList;
	private ArrayList<User> participants;
	
	public Event() {
	}
	
	public Event(int id, String name, String place, String description, Date startDate, Date endDate, User creator, Date creationDate) {
		this.id = id;
		this.name = name;
		this.place = place;
		this.description = description;
		this.startDate = startDate;
		this.endDate = endDate;
		this.creator = creator;
		this.creationDate = creationDate;
		this.resourceList = new ArrayList<Resource>();
		this.participants = new ArrayList<User>();
	}
	
	public Event(String name, String place, String description, Date startDate, Date endDate) {
		this.name = name;
		this.place = place;
		this.description = description;
		this.startDate = startDate;
		this.endDate = endDate;
		this.resourceList = new ArrayList<Resource>();
		this.participants = new ArrayList<User>();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public ArrayList<Resource> getResourceList() {
		return resourceList;
	}

	public void setResourceList(ArrayList<Resource> resourceList) {
		this.resourceList = resourceList;
	}

	public ArrayList<User> getParticipants() {
		return participants;
	}

	public void setParticipants(ArrayList<User> participants) {
		this.participants = participants;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public User getCreator() {
		return creator;
	}

	public void setCreator(User creator) {
		this.creator = creator;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
}
